package c.e.b.h.e.m.x;

import android.util.Base64;
import android.util.JsonReader;
import c.e.b.h.e.m.m;
import c.e.b.h.e.m.v;
import c.e.b.h.e.m.x.h.a;
import com.huawei.hms.jos.games.ranking.RankingConst;
import java.util.Objects;

/* compiled from: CrashlyticsReportJsonTransform */
public final /* synthetic */ class e implements a {
    public static final e a = new e();

    public Object a(JsonReader jsonReader) {
        c.e.b.i.a aVar = h.a;
        jsonReader.beginObject();
        Long l = null;
        Long l2 = null;
        String str = l2;
        String str2 = str;
        while (jsonReader.hasNext()) {
            String nextName = jsonReader.nextName();
            nextName.hashCode();
            nextName.hashCode();
            Object obj = -1;
            switch (nextName.hashCode()) {
                case 3373707:
                    if (nextName.equals(RankingConst.RANKING_JGW_NAME)) {
                        obj = null;
                        break;
                    }
                    break;
                case 3530753:
                    if (nextName.equals("size")) {
                        obj = 1;
                        break;
                    }
                    break;
                case 3601339:
                    if (nextName.equals("uuid")) {
                        obj = 2;
                        break;
                    }
                    break;
                case 1153765347:
                    if (nextName.equals("baseAddress")) {
                        obj = 3;
                        break;
                    }
                    break;
            }
            switch (obj) {
                case null:
                    str = jsonReader.nextString();
                    Objects.requireNonNull(str, "Null name");
                    break;
                case 1:
                    l2 = Long.valueOf(jsonReader.nextLong());
                    break;
                case 2:
                    str2 = new String(Base64.decode(jsonReader.nextString(), 2), v.a);
                    break;
                case 3:
                    l = Long.valueOf(jsonReader.nextLong());
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        String str3 = l == null ? " baseAddress" : "";
        if (l2 == null) {
            str3 = c.b.a.a.a.D(str3, " size");
        }
        if (str == null) {
            str3 = c.b.a.a.a.D(str3, " name");
        }
        if (str3.isEmpty()) {
            return new m(l.longValue(), l2.longValue(), str, str2, null);
        }
        throw new IllegalStateException(c.b.a.a.a.D("Missing required properties:", str3));
    }
}
